<template>
  <footer class="footer" id="contact">
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <h3>{{ t('contactInfo') }}</h3>
          <p><i class="fas fa-phone"></i> +86 400-123-4567</p>
          <p><i class="fas fa-envelope"></i> info@electrotech.com</p>
          <p><i class="fas fa-map-marker-alt"></i> 
            {{ getCurrentLang() === 'zh' ? '北京市朝阳区科技园' : 'Beijing Chaoyang Tech Park' }}
          </p>
        </div>
        
        <div class="footer-section">
          <h3>{{ t('productCategories') }}</h3>
          <router-link to="/smart-home">{{ t('smartHomeSystem') }}</router-link>
          <router-link to="/industrial">{{ t('industrialAutomation') }}</router-link>
          <router-link to="/medical">{{ t('medicalElectronics') }}</router-link>
          <router-link to="/security">{{ t('securitySystem') }}</router-link>
        </div>
        
        <div class="footer-section">
          <h3>{{ t('support') }}</h3>
          <a href="#">技术支持</a>
          <a href="#">售后服务</a>
          <a href="#">产品保修</a>
          <a href="#">用户手册</a>
        </div>
      </div>
      
      <div class="footer-bottom">
        <p>&copy; 2024 ElectroTech Pro. {{ t('allRightsReserved') }}</p>
      </div>
    </div>
  </footer>
</template>

<script setup>
import { useI18n } from '../composables/useI18n'

const { t, getCurrentLang } = useI18n()
</script>

<style scoped>
.footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 0;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #3498db;
  font-size: 1.1rem;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #3498db;
}

.footer-section p {
  color: #bdc3c7;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section i {
  margin-right: 0.5rem;
  color: #3498db;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}
</style>
